

class Person(object):
    '''
        A class defining a person
    '''
    
    def __init__(self, name='', picture=None, tags=[], priority=0):
        self._name = name
        self._picture = picture
        self._tags = tags
        self._priority = priority

    '''
        Checks if the image corresponds to the person's characteristics
    '''
    def is_match(self, real_image):
        return True
    
    '''
        tags getter
    '''
    @property
    def tags(self):
        return self._tags
    
    
    def add_tag(self, tag):
        self.tags.append(tag)
    
    def remove_tag(self, tag):
        self.tags.remove(tag)
    
    
    '''
        name getter/setter
    '''
    @property
    def name(self):
        return self._name
    
    @name.setter
    def name(self, name):
        self._name = name
    
            
        
        
